package com.yh.wuye.view;

import java.util.ArrayList;

import android.os.Bundle;
import android.view.Window;
import android.widget.ListView;

import com.yh.wuye.Entity.CallPayer;
import com.yh.wuye.view.CallPayMoneyAdapter.OnCatalogOperator;

public class CallPayMoney extends BaseActivity implements OnCatalogOperator
{
  private ListView lvCatalog;
  private CallPayMoneyAdapter mAdapter;
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
    // TODO Auto-generated method stub
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.call_pay_money);
    initView();
    setData();
  }


  @Override
  protected void initView()
  {
    super.initView();
    lvCatalog = (ListView) findViewById(R.id.lvCatalog);
    mAdapter = new CallPayMoneyAdapter(this, this);
  }


  private void setData()
  {
    ArrayList<Object> payers = new ArrayList<Object>();
    CallPayer payer = new CallPayer();
    payer.code = "11#1501";
    payer.money = "-1000";
    payer.mobile = "1358554444";
    payers.add(payer);
    CallPayer payer1 = new CallPayer();
    payer1.code = "11#1502";
    payer1.money = "-1000";
    payer1.mobile = "1358554443";
    payers.add(payer1);
    CallPayer payer2 = new CallPayer();
    payer2.code = "11#1503";
    payer2.money = "-1000";
    payer2.mobile = "1358554445";
    payers.add(payer2);
    mAdapter.setData(payers);
    lvCatalog.setAdapter(mAdapter);
  }

  @Override
  public void onCall(int idx)
  {
    // TODO Auto-generated method stub
    
  }

}
